
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>mui框架语法问题 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="qi-ta-wen-ti.html" />
    
    
    <link rel="prev" href="../chang-jian-wen-ti.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../jie-shao.html">
            
                <a href="../jie-shao.html">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../xu-yao-kan-de-kuang-jia-wen-dang.html">
            
                <a href="../xu-yao-kan-de-kuang-jia-wen-dang.html">
            
                    
                    需要看的框架文档
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../an-zhuang.html">
            
                <a href="../an-zhuang.html">
            
                    
                    安装与调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../appda-bao-ji-jie-kou-diao-yong.html">
            
                <a href="../appda-bao-ji-jie-kou-diao-yong.html">
            
                    
                    App打包及接口调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../chang-jian-wen-ti.html">
            
                <a href="../chang-jian-wen-ti.html">
            
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.4.1" data-path="muikuang-jia-yu-fa-wen-ti.html">
            
                <a href="muikuang-jia-yu-fa-wen-ti.html">
            
                    
                    mui框架语法问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="qi-ta-wen-ti.html">
            
                <a href="qi-ta-wen-ti.html">
            
                    
                    其他问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >mui框架语法问题</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>1.mui&#x79FB;&#x52A8;&#x7AEF;click&#x4E8B;&#x4EF6;&#x4F7F;&#x7528;tap&#xFF08;&#x907F;&#x514D;&#x5EF6;&#x8FDF;&#xFF09;&#xFF0C;&#x4E0D;&#x662F;&#x539F;&#x751F;click&#xFF0C;&#x5982;&#xFF1A;</p>
<blockquote>
<pre><code>        import Vue from &apos;vue&apos;
    &lt;div @tap=&apos;submit&apos;&gt;submit&lt;/div&gt;
</code></pre></blockquote>
<p>2.a&#x6807;&#x7B7E;&#x94FE;&#x63A5;&#x8DF3;&#x8F6C;&#x65E0;&#x6CD5;&#x70B9;&#x51FB;&#x8DF3;&#x8F6C;&#xFF1A;</p>
<blockquote>
<p>mui&#x4F7F;&#x7528;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x5C06;&#x6240;&#x6709;&#x7684;a&#x6807;&#x7B7E;&#x7684;href&#x5C4F;&#x853D;&#xFF0C;&#x8DF3;&#x8F6C;&#x9875;&#x9762;&#x4F7F;&#x7528;mui.openWindow({}),&#x5982;&#xFF1A;</p>
<pre><code>mui.openWindow({
    url:new-page-url,
    id:new-page-id,
    styles:{
      top:newpage-top-position,//&#x65B0;&#x9875;&#x9762;&#x9876;&#x90E8;&#x4F4D;&#x7F6E;
      bottom:newage-bottom-position,//&#x65B0;&#x9875;&#x9762;&#x5E95;&#x90E8;&#x4F4D;&#x7F6E;
      width:newpage-width,//&#x65B0;&#x9875;&#x9762;&#x5BBD;&#x5EA6;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;100%
      height:newpage-height,//&#x65B0;&#x9875;&#x9762;&#x9AD8;&#x5EA6;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;100%
      ......
    },
    extras:{
      .....//&#x81EA;&#x5B9A;&#x4E49;&#x6269;&#x5C55;&#x53C2;&#x6570;&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x5904;&#x7406;&#x9875;&#x9762;&#x95F4;&#x4F20;&#x503C;
    },
    createNew:false,//&#x662F;&#x5426;&#x91CD;&#x590D;&#x521B;&#x5EFA;&#x540C;&#x6837;id&#x7684;webview&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;false:&#x4E0D;&#x91CD;&#x590D;&#x521B;&#x5EFA;&#xFF0C;&#x76F4;&#x63A5;&#x663E;&#x793A;
    show:{
      autoShow:true,//&#x9875;&#x9762;loaded&#x4E8B;&#x4EF6;&#x53D1;&#x751F;&#x540E;&#x81EA;&#x52A8;&#x663E;&#x793A;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;true
      aniShow:animationType,//&#x9875;&#x9762;&#x663E;&#x793A;&#x52A8;&#x753B;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;&#x201D;slide-in-right&#x201C;&#xFF1B;
      duration:animationTime//&#x9875;&#x9762;&#x52A8;&#x753B;&#x6301;&#x7EED;&#x65F6;&#x95F4;&#xFF0C;Android&#x5E73;&#x53F0;&#x9ED8;&#x8BA4;100&#x6BEB;&#x79D2;&#xFF0C;iOS&#x5E73;&#x53F0;&#x9ED8;&#x8BA4;200&#x6BEB;&#x79D2;&#xFF1B;
    },
    waiting:{
      autoShow:true,//&#x81EA;&#x52A8;&#x663E;&#x793A;&#x7B49;&#x5F85;&#x6846;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;true
      title:&apos;&#x6B63;&#x5728;&#x52A0;&#x8F7D;...&apos;,//&#x7B49;&#x5F85;&#x5BF9;&#x8BDD;&#x6846;&#x4E0A;&#x663E;&#x793A;&#x7684;&#x63D0;&#x793A;&#x5185;&#x5BB9;
      options:{
        width:waiting-dialog-widht,//&#x7B49;&#x5F85;&#x6846;&#x80CC;&#x666F;&#x533A;&#x57DF;&#x5BBD;&#x5EA6;&#xFF0C;&#x9ED8;&#x8BA4;&#x6839;&#x636E;&#x5185;&#x5BB9;&#x81EA;&#x52A8;&#x8BA1;&#x7B97;&#x5408;&#x9002;&#x5BBD;&#x5EA6;
        height:waiting-dialog-height,//&#x7B49;&#x5F85;&#x6846;&#x80CC;&#x666F;&#x533A;&#x57DF;&#x9AD8;&#x5EA6;&#xFF0C;&#x9ED8;&#x8BA4;&#x6839;&#x636E;&#x5185;&#x5BB9;&#x81EA;&#x52A8;&#x8BA1;&#x7B97;&#x5408;&#x9002;&#x9AD8;&#x5EA6;
        ......
      }
    }
})
</code></pre></blockquote>
<p>3.&#x9875;&#x9762;&#x4E0A;&#x4E0B;&#x62D6;&#x52A8;&#xFF0C;&#x9875;&#x9762;&#x8D85;&#x51FA;&#x4E0D;&#x51FA;&#x73B0;&#x6EDA;&#x52A8;&#x6761;&#xFF0C;&#x65E0;&#x6CD5;&#x62D6;&#x52A8;&#xFF1A;</p>
<blockquote>
<p>&#x9875;&#x9762;&#x5185;&#x5BB9;&#x7EED;&#x5199;&#x5728;mui-scroll-wrapper&#x7684;mui-scroll&#x4E0B;&#xFF0C;&#x5982;&#xFF1A;</p>
<pre><code>&lt;div class=&quot;mui-scroll-wrapper&quot;&gt;
    &lt;div class=&quot;mui-scroll&quot;&gt;
        ...&#x9875;&#x9762;&#x5185;&#x5BB9;
&lt;/div&gt;
&lt;/div&gt;
</code></pre></blockquote>
<p>  4.Uncaught ReferenceError: plus is not defined:  </p>
<p>&#x8C03;&#x7528;plus&#x5BF9;&#x8C61;&#x9700;&#x5728;&#x521D;&#x59CB;&#x5316;&#x5B8C;&#x6210;&#x540E;&#x8C03;&#x7528;&#xFF0C;&#x65B9;&#x6CD5;&#x5199;&#x5728;mui.plusReady({})&#x4E0B;&#xFF0C;&#x793A;&#x4F8B;&#xFF1A;</p>
<blockquote>
<pre><code>  mui.plusReady(function(){
    //&#x5173;&#x95ED;&#x7B49;&#x5F85;&#x6846;
    plus.nativeUI.closeWaiting();
    //&#x663E;&#x793A;&#x5F53;&#x524D;&#x9875;&#x9762;
    mui.currentWebview.show();
  });
}
</code></pre></blockquote>
<p> 5.&#x9875;&#x9762;&#x88AB;&#x5BFC;&#x822A;&#x5934;&#x90E8;&#x906E;&#x6321;&#xFF1A;</p>
<blockquote>
<p>&#x9664;&#x4E86;&#x56FA;&#x5B9A;&#x680F;&#x4E4B;&#x5916;&#xFF0C;&#x5176;&#x5B83;&#x5185;&#x5BB9;&#x90FD;&#x8981;&#x5305;&#x88F9;&#x5728;.mui-content&#x4E2D;&#xFF0C;&#x5426;&#x5219;&#x5C31;&#x6709;&#x53EF;&#x80FD;&#x88AB;&#x56FA;&#x5B9A;&#x680F;&#x906E;&#x7F69;</p>
</blockquote>
<p>  6.&#x4F7F;&#x7528;mui&#x63D2;&#x4EF6;&#x65E0;&#x6548;&#xFF1A;</p>
<blockquote>
<p>mui&#x63D2;&#x4EF6;&#x521D;&#x59CB;&#x5316;&#x6267;&#x884C;mui.init()</p>
</blockquote>
<p>  7.Uncaught ReferenceError: mui is not defined:</p>
<blockquote>
<p>&#x67E5;&#x770B;&#x662F;&#x5426;&#x5F15;&#x5165;&#x4E86;mui.js&#x6587;&#x4EF6;</p>
</blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../chang-jian-wen-ti.html" class="navigation navigation-prev " aria-label="Previous page: 常见问题">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="qi-ta-wen-ti.html" class="navigation navigation-next " aria-label="Next page: 其他问题">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"mui框架语法问题","level":"1.4.1","depth":2,"next":{"title":"其他问题","level":"1.4.2","depth":2,"path":"chang-jian-wen-ti/qi-ta-wen-ti.md","ref":"chang-jian-wen-ti/qi-ta-wen-ti.md","articles":[]},"previous":{"title":"常见问题","level":"1.4","depth":1,"path":"chang-jian-wen-ti.md","ref":"chang-jian-wen-ti.md","articles":[{"title":"mui框架语法问题","level":"1.4.1","depth":2,"path":"chang-jian-wen-ti/muikuang-jia-yu-fa-wen-ti.md","ref":"chang-jian-wen-ti/muikuang-jia-yu-fa-wen-ti.md","articles":[]},{"title":"其他问题","level":"1.4.2","depth":2,"path":"chang-jian-wen-ti/qi-ta-wen-ti.md","ref":"chang-jian-wen-ti/qi-ta-wen-ti.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chang-jian-wen-ti/muikuang-jia-yu-fa-wen-ti.md","mtime":"2017-12-30T13:49:20.571Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-12-30T13:57:58.239Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

